﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class JiaoTong
    {
        private string name;
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public JiaoTong() { }

        public JiaoTong(string Name)
        {
            this.name = Name;
        }
        public void SayHi()
        {
            Console.WriteLine("我是交通工具{0}", this.Name);
        }
    }
}
